package com.versiFramework.events {	
	import flash.events.Event;
   	/* -------------------------------------------------------
   	---  The versiEvent class is used to broadcast          ---
   	---  versiFramework events within controllers           --- 
   	--------------------------------------------------------*/
	public class versiEvent extends Event implements IVersiEvent {
		
		private var _data:*;
		
		public function set data(setVal:*):void
		{
			_data=setVal;
		}
			
		public function get data():*
		{
			return _data;
		}
		
		
		public function versiEvent(type:String, data:*=null, bubbles:Boolean=false,cancelable:Boolean=false )
		{
			super( type, bubbles,cancelable );			
			this.data=data;
		}
		override public function clone():Event
		{
			return new versiEvent(type, data); // bubbling support
		} 
	}
}